package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.QueryCarDTO;
import com.woniu.entity.vo.UserCarVO;
import com.woniu.entity.vo.OrderByIdVO;
import com.woniu.entity.vo.QueryCarByIdVO;
import com.woniu.pojo.Car;

import java.util.List;

/**
* @author Ma.Lei
* @description 针对表【t_car】的数据库操作Service
* @createDate 2022-12-16 23:27:39
*/
public interface CarService extends IService<Car> {

    PageData listSearch(Integer currentPage, Integer pageSize, QueryCarDTO queryCarDTO);

    int disabledCar(String id, Integer status);

    List<UserCarVO> getByNumber(String id);

    Boolean deleteCar(String carNumber, String id);

    Car selectCarByNum(String id, String carNum);

    Car getByCarNumber(String carNum);
    List<QueryCarByIdVO> listCarByUserId(String id);

    List<OrderByIdVO> listOrderByCarId(String id);
    String getIdByNumber(String carNumber);
}
